cmake_minimum_required(VERSION 3.10)

project(ButtonTest VERSION 1.0 LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia)

file(GLOB BUTTON_SOURCE_CPP ${CMAKE_CURRENT_SOURCE_DIR}/interactive_buttons/*.cpp)
file(GLOB BUTTON_SOURCE_H ${CMAKE_CURRENT_SOURCE_DIR}/interactive_buttons/*.h)

file(GLOB SOURCE_CPP ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
file(GLOB SOURCE_H ${CMAKE_CURRENT_SOURCE_DIR}/*.h)

set(SOURCE_FILE
	${BUTTON_SOURCE_CPP}
	${BUTTON_SOURCE_H}
	${SOURCE_CPP}
	${SOURCE_H}
)

add_executable(${PROJECT_NAME} ${SOURCE_FILE})

target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/interactive_buttons)

target_link_libraries(${PROJECT_NAME} Qt6::Widgets)
